package com.controller;

import com.xt.springcloud.pojo.Dept;
import com.xt.springcloud.service.DeptClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class CustomerController {

    @Autowired
    private DeptClientService deptClientService;

    @GetMapping("/customer/get")
    public List<Dept> listDept(){
        return deptClientService.listDept();
    }

}
